// Fill out your copyright notice in the Description page of Project Settings.

#include "WorldEntityProperty.h"
#include "WorldEntityPart.h"

FWorldEntityPropertyBase::FWorldEntityPropertyBase(FWorldEntityPart* part)
	: _part(part)
{}

FWorldEntityPropertyBase::~FWorldEntityPropertyBase()
{}

void FWorldEntityPropertyBase::PropertyChanged()
{
	if (_part)
	{
		_part->PropertyChanged();
	}
}

void FWorldEntityPropertyBase::PartAdded(FWorldEntityPart* child)
{
	if (child)
	{
		child->_parent = _part;
	}
}
